<template>
<!--    我的页面-->
    <div>
        <van-cell title="历史坐标" is-link  to="/hishory"/>
        <van-button type="danger" @click="logOut">退出登录</van-button>
    </div>
</template>

<script>
    export default {
        name: "myPage",
        data(){
            return{

            }
        },
        created(){


        },
        methods:{
            logOut(){
                this.$dialog.confirm({
                    message: '确定要退出登录？',
                })
                    .then(() => {
                       this.$router.push("/")
                    })
                    .catch(() => {
                        // on cancel
                    })
            },

        }
    }
</script>

<style lang="scss" scoped>
    .van-button--danger{
        position: absolute;
        bottom: 2rem;
        left: 50%;
        width: 85%;
        margin-left: -42.5%;
        height: 1rem;
    }
</style>